package com.woniuxy01;

class Aaa{

    public void test(){
        System.out.println("aaa--- test()");
    }

    public static void sss(){
        System.out.println("aaa-sss()");
    }
}
class Bbb extends Aaa{
    public void test(){
        System.out.println("bbb--- test()");
    }
    public void test(int x){
        System.out.println("bbb--- test(int x)");
    }
    public static void sss(){
        System.out.println("aaa-sss()");
    }
}
public class Test01 {
    public static void main(String[] args) {
        Aaa aaa = new Aaa();
        Bbb bbb = new Bbb();
        aaa=bbb;
        Aaa.sss();
        //C#报错
        aaa.sss();
        aaa.sss();
    }
}
